#ifndef CONFIGMGR_H
#define CONFIGMGR_H
#include "Singleton.h"
#include <iostream>

class ConfigMgr:public Singleton<ConfigMgr>
{
    friend class Singleton<ConfigMgr>;
public:
    ~ConfigMgr() { std::cout << "ConfigMgr destructor." << std::endl; };
    QString const getGateServerPort()const{ return GateServer_Port_;};
    QString const getGateServerIp()const{ return GateServer_Ip_;};
    QString const getPostGetVerifyCode()const{ return Post_GetVerifyCode_;};
    QString const getPostUserRegister()const{ return Post_UserRegister_;};
    QString const getPostResetPassWord()const{ return Post_ResetPassWord_;};
    QString const getPostLogion()const{ return Post_Login_;};
    void PrintConfigure()const;
private:
    QString GateServer_Port_;//服务器端口
    QString GateServer_Ip_;//服务器地址
    QString Post_GetVerifyCode_;//获取验证码
    QString Post_UserRegister_;//用户注册

    QString Post_ResetPassWord_;//重置密码
    QString Post_Login_;//登录
    ConfigMgr();
};
#endif // CONFIGMGR_H
